import home from '@/views/home/index.vue'
import mine from '@/views/mine/index.vue'
import { createRouter,createMemoryHistory,createWebHistory,createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/home',
        name: 'home',
        component: home,
        meta: {
            title: '首页',
            KeepAlive: false
        }
    },
    {
        path: '/mine',
        name: 'mine',
        component: mine,
        meta: {
            title: '我的',
            KeepAlive: false
        }
    }
]

const router = createRouter({
    history: createWebHistory(),   // hash模式或者history模式
    routes
})

export default router